package com.web.entity;

/**
 * @author Songzzz
 * @Description
 * @Date 2025/3/6 17:00
 */
public class Course {
    public int id;
    private String name;
    public int time;
    public int point;

    // 无参构造函数
    public Course() {
    }

    // 带参构造函数
    public Course(int id, String name, int time, int point) {
        this.id = id;
        this.name = name;
        this.time = time;
        this.point = point;
    }

    // Getter 和 Setter 方法
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public int getPoint() {
        return point;
    }

    public void setPoint(int point) {
        this.point = point;
    }

    @Override
    public String toString() {
        return "Course{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", time=" + time +
                ", point=" + point +
                '}';
    }
}
